<?php /* Smarty version 2.6.16, created on 2012-02-24 16:36:14
         compiled from lesson_update.tpl */ ?>
<?php echo '
<script type="text/javascript">
function checkPaid(status){
	if(status==2){
		document.getElementById(\'show_row\').style.display="block";
	}else{
		document.getElementById(\'show_row\').style.display="none";
	}
}

function date_focus(){
	
	if(document.getElementById(\'paid_date\').value==\'Date\'){
		document.getElementById(\'paid_date\').value=\'\';
	}

}

function transc_focus(){
	
	if(document.getElementById(\'transaction_no\').value==\'Transaction No.\'){
		document.getElementById(\'transaction_no\').value=\'\';
	}

}

function date_blur(){
	
	if(document.getElementById(\'paid_date\').value==\'\'){
		document.getElementById(\'paid_date\').value=\'Date\';
	}

}

function transc_blur(){
	
	if(document.getElementById(\'transaction_no\').value==\'\'){
		document.getElementById(\'transaction_no\').value=\'Transaction No.\';
	}

}


</script>
'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<h2><?php echo $this->_tpl_vars['SubmitButton']; ?>
</h2>
<div class="tabarea">
<div class="tabcontent">
<p align="right" class="fields">Fields marked with <span class="red">*</span> are required</p>
<form action="lesson_update.php?action=trans" method="post" name="frm_admin" id="frm_admin" enctype="multipart/form-data">
		<table width="100%" border="0" cellspacing="4" cellpadding="0">
		  <?php if ($this->_tpl_vars['err_msgs'] != ""): ?>     
			<tr>
				<td class="simpleText" colspan="2"><ul><?php echo $this->_tpl_vars['err_msgs']; ?>
</ul></td>
			</tr>
			<tr>
				<td align="left" valign="top">&nbsp;</td>
				<td align="left" valign="top">&nbsp;</td>
			 </tr>
		  <?php endif; ?>
		 
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Title <span style="color:#FF0000;">*</span>:</td>
			<td width="70%" align="left" valign="middle">
			<?php if ($this->_tpl_vars['FabricArr']['lesson_status_id'] != '4' && $this->_tpl_vars['FabricArr']['lesson_status_id'] != '5'): ?>
			<label>
			<input type="text" name="lesson_title" id="lesson_title" value="<?php echo $this->_tpl_vars['FabricArr']['lesson_title']; ?>
" class="textbox" style=" margin-left:7px;" />
			</label>
			<?php else: ?>
			<label style="color:#000000; padding-left:5px;"><?php echo $this->_tpl_vars['FabricArr']['lesson_title']; ?>
</label>
			<?php endif; ?>
			</td>
		 </tr>	
		 <tr>
			<td width="30%" align="left" valign="top" class="plaintxt">Description : </td>
			<td width="70%" align="left" valign="middle">
			<?php if ($this->_tpl_vars['FabricArr']['lesson_status_id'] != '4' && $this->_tpl_vars['FabricArr']['lesson_status_id'] != '5'): ?>
			<label>
			<textarea name="lesson_description" id="lesson_description"  class="bigger" style="height:110px; margin-left:7px;" /><?php echo $this->_tpl_vars['FabricArr']['lesson_description']; ?>
</textarea></label>
			<?php else: ?>
			<label style="color:#000000; padding-left:5px;"><?php echo $this->_tpl_vars['FabricArr']['lesson_description']; ?>
</label>
			<?php endif; ?>
			</td>
		 </tr>	
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Price <span style="color:#FF0000;">*</span>:</td>
			<td width="70%" align="left" valign="middle">
			<?php if ($this->_tpl_vars['FabricArr']['lesson_status_id'] != '4' && $this->_tpl_vars['FabricArr']['lesson_status_id'] != '5'): ?>
			<label style="color:#000000;">
			<b style="float:left; padding-top:0px;">$</b>&nbsp;<input type="text" name="lesson_price" id="lesson_price" value="<?php echo $this->_tpl_vars['FabricArr']['lesson_price']; ?>
" class="textbox" style="width:100px;"/></label>
			<?php else: ?>
			<label style="color:#000000; padding-left:5px;"><b>$</b>&nbsp;<?php echo $this->_tpl_vars['FabricArr']['lesson_price']; ?>
</label>
			<?php endif; ?>
			</td>
		 </tr>
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Admin Commission <span style="color:#FF0000;">*</span>:</td>
			<td width="70%" align="left" valign="middle">
			<?php if ($this->_tpl_vars['FabricArr']['lesson_status_id'] != '4' && $this->_tpl_vars['FabricArr']['lesson_status_id'] != '5'): ?>
			<label style="color:#000000;">
			<input type="text" name="lesson_commision_admin" id="lesson_commision_admin" value="<?php echo $this->_tpl_vars['FabricArr']['lesson_commision_admin']; ?>
" class="textbox" style="width:50px; margin-left:7px;"/><b style="float:left; padding-top:0px;">&nbsp;%</b></label>
			<?php else: ?>
			<label style="color:#000000; padding-left:5px;"><?php echo $this->_tpl_vars['FabricArr']['lesson_commision_admin']; ?>
&nbsp;<b>%</b></label>
			<?php endif; ?>
			</td>
		 </tr>
		 <tr>
			<td height="28" align="left" class="plaintxt">Status :</td>
			<td height="28" align="left" class="maintext">
			<?php if ($this->_tpl_vars['FabricArr']['lesson_status_id'] != '4' && $this->_tpl_vars['FabricArr']['lesson_status_id'] != '5'): ?>
				<select name="lesson_status_id" id="lesson_status_id" class="selectbox" style="width:250px; margin-left:7px;" onchange="checkPaid(this.value)">
					<?php unset($this->_sections['Row']);
$this->_sections['Row']['name'] = 'Row';
$this->_sections['Row']['loop'] = is_array($_loop=$this->_tpl_vars['SelectStatusArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['Row']['show'] = true;
$this->_sections['Row']['max'] = $this->_sections['Row']['loop'];
$this->_sections['Row']['step'] = 1;
$this->_sections['Row']['start'] = $this->_sections['Row']['step'] > 0 ? 0 : $this->_sections['Row']['loop']-1;
if ($this->_sections['Row']['show']) {
    $this->_sections['Row']['total'] = $this->_sections['Row']['loop'];
    if ($this->_sections['Row']['total'] == 0)
        $this->_sections['Row']['show'] = false;
} else
    $this->_sections['Row']['total'] = 0;
if ($this->_sections['Row']['show']):

            for ($this->_sections['Row']['index'] = $this->_sections['Row']['start'], $this->_sections['Row']['iteration'] = 1;
                 $this->_sections['Row']['iteration'] <= $this->_sections['Row']['total'];
                 $this->_sections['Row']['index'] += $this->_sections['Row']['step'], $this->_sections['Row']['iteration']++):
$this->_sections['Row']['rownum'] = $this->_sections['Row']['iteration'];
$this->_sections['Row']['index_prev'] = $this->_sections['Row']['index'] - $this->_sections['Row']['step'];
$this->_sections['Row']['index_next'] = $this->_sections['Row']['index'] + $this->_sections['Row']['step'];
$this->_sections['Row']['first']      = ($this->_sections['Row']['iteration'] == 1);
$this->_sections['Row']['last']       = ($this->_sections['Row']['iteration'] == $this->_sections['Row']['total']);
?>
					<option value="<?php echo $this->_tpl_vars['SelectStatusArr'][$this->_sections['Row']['index']]['lesson_status_id']; ?>
" <?php if ($this->_tpl_vars['SelectStatusArr'][$this->_sections['Row']['index']]['lesson_status_id'] == $this->_tpl_vars['FabricArr']['lesson_status_id']): ?> selected <?php endif; ?>><?php echo $this->_tpl_vars['SelectStatusArr'][$this->_sections['Row']['index']]['lesson_status_title']; ?>
</option>
					<?php endfor; endif; ?>
				</select>
			<?php else: ?>
				<label style="font-family: 'Trebuchet MS','Myriad Pro',Arial,Verdana,sans-serif;font-size: 13px; color:#000000; margin-left:7px;"><?php echo $this->_tpl_vars['FabricArr']['status_name']; ?>
</label>
			<?php endif; ?>		
				
			</td>
		  </tr>
  		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">&nbsp; </td>
			<td width="70%" align="left" valign="middle">
			<div style="display:none;" id="show_row">
			<div style="float:left; padding-left:7px;"><input type="text" name="paid_date" id="paid_date" value="<?php echo $this->_tpl_vars['FabricArr']['lesson_payment_date']; ?>
" class="datebox" style="width:100px;" onfocus="date_focus();" onblur="date_blur();" readonly=""/><a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fEndPop(document.frm_admin.paid_date,document.frm_admin.paid_date);return false;" hidefocus><img class="PopcalTrigger" align="top" src="images/icon_calender.gif" border="0" alt="Click to set Date" height="17" /></a></div>
			<div style="float:left; color:#000000; padding-left:20px;"><input type="text" name="transaction_no" id="transaction_no" value="<?php echo $this->_tpl_vars['FabricArr']['lesson_payment_transaction_no']; ?>
" style="width:200px;" class="datebox" onfocus="transc_focus();" onblur="transc_blur();"/></div>
			</div></td>
		 </tr>
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Coach : </td>
			<td width="70%" align="left" valign="middle"><label style="font-family: 'Trebuchet MS','Myriad Pro',Arial,Verdana,sans-serif;font-size: 13px; color:#000000; margin-left:7px;">
			<?php echo $this->_tpl_vars['FabricArr']['coach_name']; ?>
&nbsp;(&nbsp;Paypal Email ID:&nbsp;<?php echo $this->_tpl_vars['FabricArr']['paypal_email_id']; ?>
&nbsp;)</label></td>
		 </tr>
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Student : </td>
			<td width="70%" align="left" valign="middle"><label style="font-family: 'Trebuchet MS','Myriad Pro',Arial,Verdana,sans-serif;font-size: 13px; color:#000000; margin-left:7px;"><?php echo $this->_tpl_vars['FabricArr']['student_name']; ?>
</label></td>
		 </tr>	 
 		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Payment Date : </td>
			<td width="70%" align="left" valign="middle"><label style="font-family: 'Trebuchet MS','Myriad Pro',Arial,Verdana,sans-serif;font-size: 13px; color:#000000; margin-left:7px;"><?php if ($this->_tpl_vars['FabricArr']['lesson_payment_date'] != '0000-00-00'):  echo $this->_tpl_vars['FabricArr']['lesson_payment_date'];  else: ?>N/A<?php endif; ?></label></td>
		 </tr>	 
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Closed Date : </td>
			<td width="70%" align="left" valign="middle"><label style="font-family: 'Trebuchet MS','Myriad Pro',Arial,Verdana,sans-serif;font-size: 13px; color:#000000; margin-left:7px;">
				<?php if ($this->_tpl_vars['FabricArr']['status_name'] != 'Closed'): ?>
					<?php if ($this->_tpl_vars['FabricArr']['lesson_closed_date'] != '0000-00-00'): ?>
						<?php echo $this->_tpl_vars['FabricArr']['lesson_closed_date']; ?>

					<?php else: ?>
						N/A
					<?php endif; ?>
				<?php else: ?>
					 N/A
				<?php endif; ?>
			</label>
			</td>
		 </tr>	 
		 <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		  <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">
			<?php if ($this->_tpl_vars['FabricArr']['lesson_status_id'] != '4' && $this->_tpl_vars['FabricArr']['lesson_status_id'] != '5'): ?>
			 <input name="lesson_id" id="lesson_id" type="hidden" value="<?php echo $this->_tpl_vars['lesson_id']; ?>
"/>
			 <input name="imageField" type="submit" class="addsadmin" value="Update" />
&nbsp;&nbsp;&nbsp;<input name="" type="button" class="cancel" value="Cancel" 
onclick="window.location.href='lesson_manager.php?IsPreserved=Y'"/><?php else: ?><input name="" type="button" class="cancel" value="Back" 
onclick="window.location.href='lesson_manager.php?IsPreserved=Y'"/><?php endif; ?></td>
		  </tr>
		  <tr>
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		  </tr>
		</table>
</form>

	</div>
 </div>
    <p>&nbsp;</p>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<iframe width=132 height=142 name="gToday:contrast:agenda.js" id="gToday:contrast:agenda.js" src="DateRange/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-300px; top:0px;"></iframe>